package type;

public class ValueOut {
	public static void main(String[] args) {

		int y = 10;
		y = y + Integer.MAX_VALUE;
		System.out.println(y);
		System.out.println(Integer.MAX_VALUE);

		int y1 = -Integer.MAX_VALUE;
		y1 = y1 - Integer.MAX_VALUE;
		System.out.println(y1);
		System.out.println(Integer.MAX_VALUE);

		double z = 10;
		z = z + Double.MAX_VALUE;
		System.out.println(z);
		System.out.println(Double.MAX_VALUE);

		double z1 = Double.MAX_VALUE;
		z1 = z1 + Double.MAX_VALUE;
		System.out.println(z1);
		System.out.println(Double.MAX_VALUE);

	}

}
